Repository navigation
Sketch: copy completed sketches between designs (#5427) - #8962
Merged
bherbruck merged 2 commits intoOct 30, 2026
Merged
Conversation
cfaulkingham
marked this pull request as ready for review
October 29, 2026 18:39
cfaulkingham
marked this pull request as draft
October 29, 2026 18:40
cfaulkingham
force-pushed
the
codex/sketch-copy-5427
branch
from
October 29, 2026 18:56
cd5cdc3 to
cbe3637
Compare
cfaulkingham
marked this pull request as ready for review
October 29, 2026 18:59
Collaborator
|
Looks good, approved. It conflicts with main right now, so it needs a rebase before it can merge. #3512 has already landed, so you only have to rebase onto main, not wait on another PR. |
bherbruck
force-pushed
the
codex/sketch-copy-5427
branch
from
October 30, 2026 13:56
cbe3637 to
ec81b89
Compare
bherbruck
added this pull request to the merge queue
Oct 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
Fixes #5427.
Copying a completed sketch and pasting into a new design used to report “Nothing to paste: copy bodies or timeline features first”. Completed sketches now use the application’s cross-design clipboard and paste as independent, editable features through
timeline.paste. Keyboard Paste and the Sketches folder/group menus share this path; the snapshot survives edits to or closure of its source tab.The paste copies numeric and text parameter dependencies, resolves destination name collisions, retains source units, remaps references between copied sketches, and preserves world placement when the destination component is moved. The operation is one undo step. Same-design paste continues to use its existing path.
Scope: sketch features with self-contained planes and references. Planes tied to model geometry and projected geometry outside the copied set are rejected before changing the destination, with an explanation; they cannot accidentally bind to matching IDs in another design. No kernel behavior or design format changes.
Changes a default: no
Validation
1c0001af8. The new-design UI regression failed before the fix and passed afterward.cargo test --profile ci --workspace --lib clipboard -- --test-threads=4: 65 tests passed (29 engine, 32 UI, 4 document), including eight new regression tests. They cover tab closure, group-menu paste, parameter independence, units, name collisions, linked sketches, equation curves, moved components, atomic refusal, undo/redo and serialization.cargo xtask cion the implementation based on15e324518: repository checks, formatting, Clippy, wasm and doc tests passed, as did the full UI library (3,499 passed), kernel library (878 passed), command-atomicity suite and interaction matrix. The gate is not green:agent_chat_home_pagetimed out waiting for “Add agent”, andcmd::features::prism_local_tests::a_ring_cut_round_a_counterbored_hole_in_a_chamfered_discfailed. Both also failed in the baseline before this fix. The remaining broad engine run was interrupted after these failures; its coverage is incomplete, and the subsequent web-offline check was not reached.Screenshots of the behavior
On macOS, create an XY sketch with a 30 × 20 mm rectangle, finish it, select its feature, Copy, create a New Design, then Paste.
Before (
1c0001af8): the original design accepts Paste, but the new design stays empty and reports “Nothing to paste”.After: the new design contains the pasted sketch; Undo removes it and Redo restores it.
Editing the pasted sketch shows the original dimensions and fully constrained state.
Integration status
Rebased onto upstream
mainat6fcdca1bbwithout conflicts. Reran clipboard tests after integrating the upstream equation-curve, parameter-unit and text-field clipboard changes. This remains a draft PR pending maintainer review.